package cn.source.system.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;

/**
 * 日志文件对象 deyu_log_file
 * 
 * @author deyucare.com
 * @date 2025-03-09
 */
public class DeyuLogFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private BigDecimal fileSizeMb;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 设备 MAC 地址，唯一标识设备 */
    @Excel(name = "设备 MAC 地址，唯一标识设备")
    private String deviceMac;

    /** 日志信息信息 */
    private List<DeyuLogEntry> deyuLogEntryList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFileSizeMb(BigDecimal fileSizeMb) 
    {
        this.fileSizeMb = fileSizeMb;
    }

    public BigDecimal getFileSizeMb() 
    {
        return fileSizeMb;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeviceMac(String deviceMac) 
    {
        this.deviceMac = deviceMac;
    }

    public String getDeviceMac() 
    {
        return deviceMac;
    }

    public List<DeyuLogEntry> getDeyuLogEntryList()
    {
        return deyuLogEntryList;
    }

    public void setDeyuLogEntryList(List<DeyuLogEntry> deyuLogEntryList)
    {
        this.deyuLogEntryList = deyuLogEntryList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileName", getFileName())
            .append("fileSizeMb", getFileSizeMb())
            .append("userId", getUserId())
            .append("deviceMac", getDeviceMac())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("deyuLogEntryList", getDeyuLogEntryList())
            .toString();
    }
}
